﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WWX.Model;

namespace WWX.Admin.Web
{
    public static class OrderStatusExtension
    {
        public static string ToText(this OrderStatus status)
        {
            switch (status)
            {
                case OrderStatus.Completed:
                    return "已收货";
                case OrderStatus.Inprogress:
                    return "运输中";
                case OrderStatus.Invalid:
                    return "无效";
                case OrderStatus.Pending:
                    return "待发货";
                case OrderStatus.Returned:
                    return "已退货";
                case OrderStatus.Returning:
                    return "退货中";
                default:
                    return "未知";

            }
        }
    }
}